#!/usr/bin/env Python
# coding=utf-8

import tornado.web
import methods.database.dbORM as dborm
class BaseHandler(tornado.web.RequestHandler):
    def initialize(self):
        self.session = dborm.DB_Session()

    def on_finish(self):
        self.session.close()

asynchronous = tornado.web.asynchronous